
import com.hogofwar.DJbot.BasePlugin;
import com.hogofwar.DJbot.IRCBase;

public class COM_stfu implements BasePlugin {

	public void start(final IRCBase irc, final String[] extra, String channel,
			String sender, String hostname, boolean usename) {
		
	
		
		if(IRCBase.stfu){
			String tosend = "At last, I can talk!";
			irc.sendNotice(sender,  tosend);
			IRCBase.stfu = false;
		}else{
			IRCBase.stfu = true;
			String tosend = "Fine, I will shut up now.";
			irc.sendNotice(sender,  tosend);
		}
	}

	public String help() {
		return "STFU - YOU BE QUIET!";
		// TODO Auto-generated method stub

	}

	public String version() {
		return "stfu version 1";
		// TODO Auto-generated method stub

	}

	@Override
	public String restrict() {
		// TODO Auto-generated method stub
		return "op";
	}

	@Override
	public Boolean hide() {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public String aliases() {
		// TODO Auto-generated method stub
		return "shutit, quiet, gtfo, kthx";
	}

}
